updating oE now_gmt

now_gmt

include datetime.e -- (default namespace is datetime) 
public function now_gmt() 

create a new datetime value that falls into the Greenwich Mean Time (GMT) timezone.

Comments:

This function will return a datetime that is GMT no matter what timezone the system is running under.

Example 1:
include std/datetime.e 
 
datetime lt = now() -- local time 
datetime gmt = now_gmt() 
? lt 
? gmt 
Results:

{2019,9,7,17,58,53}
{2019,9,7,21,58,53}

See Also:

now

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu